package com.ruicar.afs.cloud.basic.proceeds.mq.fallback;

import com.ruicar.afs.cloud.common.mq.rabbit.fallback.SendFallBack;

import lombok.extern.slf4j.Slf4j;
/**
 * 
 * @author happysayhello
 *
 */
@Slf4j
public class SendContractActiveSuccessFallBack implements SendFallBack {



    @Override
    public void errorHandler(int code, String exchange, String routeKey, String message) {
            log.error("mq->发送消息失败\ncode:{}\nexchange:{}\nrouterKey{}\n消息内容:{}",code,exchange,routeKey,message);
    }

    @Override
    public void successHandler(int code, String exchange, String routeKey, String message) {
        log.info("mq->发送消息成功\ncode:{}\nexchange:{}\nrouterKey{}\n消息内容:{}",code,exchange,routeKey,message);
    }
}
